<?php
/**
 * Celebrio Kernel
 *
 * @copyright  Copyright (c) 2012 Celebio Software, s.r.o.
 * @package    Kernel
 */
namespace KernelModule\LogsModule\LoggerModule;

/**
 * Interface for reading logs in Celebrio
 * 
 * @author Martin Novák
 */
interface ILogReader {
    
	/**
	 * returns array with stored logs
	 * array(
	 *	  "id" => mixed,
	 *	  "time" => date("D, d M Y H:i:s"),
	 *	  "level" => string,
	 *	  "file" => string,
	 *	  "class" => string,
	 *	  "method" => string,
	 *	  "line" => int,
	 *	  "message" => string)
	 * @param string $target name of target table or file
	 * @param mixed $from start reading from
	 * @return array
	 */
    static function getLogsList($target,$from);

}